#ifndef _FFPUBLOG_H_
#define _FFPUBLOG_H_

#include <android/log.h>

#define __FILENAME__ (strrchr(__FILE__, '/') ? (strrchr(__FILE__, '/') + 1):__FILE__)

#define D_DPrint(...) {__android_log_print(ANDROID_LOG_DEBUG, "MFFMPEG", __VA_ARGS__);} 
#define E_DPrint(...) {__android_log_print(ANDROID_LOG_ERROR, "MFFMPEG", __VA_ARGS__);} 


#define DPrint(format, ...) \
{ \
  D_DPrint("%s\t%s\t%d\t" format"", __FILENAME__, __func__,__LINE__, ##__VA_ARGS__ ); \
}

#define EPrint(format, ...) \
{ \
  E_DPrint("%s\t%s\t%d\t" format"", __FILENAME__, __func__,__LINE__, ##__VA_ARGS__ ); \
}


void printBuffer(unsigned char *pBuffer, int nSize, const  char *tag);

#endif
